<!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="UTF-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<meta http-equiv="X-UA-Compatible" content="ie=edge" />
	<title>Document</title>
	<script src="js/vue.js"></script>
</head>
<body>
	
	<div id="app">
		<button v-for="item in cnt">haha,我是新增的按钮</button>
		<hr	/>
		<button @click.once="cnt++">点新增一行</button>
		<button @click="cnt++">点我添加一个按钮</button>
	</div>
	
	<script type="text/javascript">
		const app = new Vue({
			el: "#app",
			data: {
				cnt : 0
			}
		})
	</script>
	
</body>
</html>